<p>
	Please enter your information in order to sign you up.
</p>
<?php
	echo validation_errors();
	
	echo form_open('c_signup') . PHP_EOL;
	
	echo "<p>Username: <br />" . form_input('username', $repopulation['username']) . "</p>" . PHP_EOL;
	
	echo "<p>Password: <br />" . form_password('password1') . "<br />" . PHP_EOL;
	echo "Retype password: <br />" . form_password('password2') . "</p>" . PHP_EOL;
	
	echo "<p>E-mail: <br />" . form_input('email1', $repopulation['email1']) . "<br />" . PHP_EOL;
	echo "Retype e-mail: <br />" . form_input('email2', $repopulation['email2']) . "</p>" . PHP_EOL;
	
	echo "<p>Birthday (" . anchor('http://en.wikipedia.org/wiki/ISO_8601', 'yyyy-mm-dd', array('title' => 'ISO 8601')) . "): <br />" . form_input('birthday', $repopulation['birthday']) . "</p>" . PHP_EOL;
	
	echo "<p>Gender: <br />" . PHP_EOL;
	echo form_radio('gender', 'male', $repopulation['gender']['male']) . " Male" . PHP_EOL;
	echo form_radio('gender', 'female', $repopulation['gender']['female']) . " Female" . PHP_EOL;
	echo form_radio('gender', 'unknown', $repopulation['gender']['unknown']) . " Unknown</p>" . PHP_EOL;
	
	echo "<p>" . form_checkbox('agreement', 'accept', FALSE) . "I agree to " . anchor_popup('c_signup/terms_of_use', 'The terms of use', $popup_attributes) . ".</p>" . PHP_EOL;
	
	echo "<p>" . form_submit('user_submit', 'Register') . "</p>";
?>
</form>